package com.easyj.admin.sys.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.easyj.base.exception.EasyjException;
import com.easyj.admin.db.model.ImpResult;
import com.easyj.admin.db.model.Position;
import com.easyj.admin.db.model.User;

public interface PositionService {
   	public List<Position> findList(Position filter);
		
    public long count(Position filter);

	public Position findById(Long id);

	public int  insertEntity(Position entity) throws EasyjException;
	
	public int  updateEntity(Position entity) throws EasyjException;

	public int  deleteById(Long id) throws EasyjException;

	public Position  selectUniqueByUqCode(String code);
	public Position  selectUniqueByUqName(String name);
	
	public List<User> findUsersByPositionId(Long positionId);
	
	public List<User> findUsersByPositionCode(String positionCode);
	
	public ImpResult importExcel(MultipartFile excelfile,Long operatorId) throws Exception;
}
